<?php

	$val = isset($_GET['suggest']) ? $_GET['suggest'] : '';
	$len = strlen($val);

	$arr = array(
		'',
		'@163.com', 
		'@126.com', 
		'@qq.com', 
		'@sina.com'
	); if (strpos($val, '@')){
		$arr = array('');
	}
?>

<html>
	<head>
		<title>Suggesting</title>
	</head>
	<body>
		<!--(wscajax)-->
		<ul>
			<?php foreach ($arr as $i => $a){ ?>
				<li><a suggest-index="#<?php echo $i?>" suggest-value="$<?php echo $val?>" suggest-text="<?php echo $val?><?php echo $a?>" href="javascript:void(0)"><?php echo $val?><?php echo $a?></a></li>
			<?php } ?>
		</ul>
		<!--(/wscajax)-->
	</body>
</html>